package smetana.domain.join;

import smetana.domain.raw.Doc;

import java.math.BigDecimal;

import static org.apache.commons.lang.StringUtils.defaultString;

/**
 * @author dmitry.mamonov
 */
public class DocReport extends Doc {
    String agentName;
    BigDecimal docPrice;
    String managerName;

    protected DocReport() {
        //for ibatis.
    }

    public String getAgentName() {
        return defaultString(agentName);
    }

    protected void setAgentName(String agentName) {
        this.agentName = agentName;
    }

    public BigDecimal getDocPrice() {
        return docPrice == null ? BigDecimal.ZERO : docPrice;
    }

    protected void setDocPrice(BigDecimal docPrice) {
        this.docPrice = docPrice;
    }

    public String getManagerName() {
        return defaultString(managerName);
    }

    protected void setManagerName(String managerName) {
        this.managerName = managerName;
    }
}
